package handle

import (
	"github.com/emicklei/go-restful/v3"
)

type Protobuf struct {
}

func (r Protobuf) InitRoute(container *restful.Container) {
	ws := new(restful.WebService)
	ws.Route(ws.POST("/rpc/readProtobuf").To(r.ReadProtobuf()))
	ws.Route(ws.POST("/rpc/protobuf").To(r.Protobuf()))
	ws.Route(ws.POST("/rpc/readJsonProtobuf").To(r.ReadJSONProtobuf()))
	container.Add(ws)

}
func (r Protobuf) Protobuf() restful.RouteFunction {
	return func(request *restful.Request, response *restful.Response) {
		return
	}
}

func (r Protobuf) ReadProtobuf() restful.RouteFunction {
	return func(request *restful.Request, response *restful.Response) {
		return
	}
}
func (r Protobuf) ReadJSONProtobuf() restful.RouteFunction {
	return func(request *restful.Request, response *restful.Response) {
		return
	}
}
